package com.example.demo;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.Async;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication //表明这是一个springboot项目启动类
@MapperScan("com.example.demo.mapper") //避免每次都写@Mapper注解
@EnableAsync //开启异步任务的注解
@EnableScheduling //开启定时任务
public class Demo1Application {

    public static void main(String[] args) {
        SpringApplication.run(Demo1Application.class, args);
        System.out.println("**********************************启动成功**************************************");
    }

}
